<div class="layui-tab layui-tab-card" style="margin: 0 6px" lay-filter="test1">
    <ul class="layui-tab-title">
        <li class="layui-this" lay-id="parameter">预览参数值</li>
        <li lay-id="result">结果</li>
    </ul>
    <div class="layui-tab-content" style="height: 250px;">
        <div class="layui-tab-item layui-show">
            <form class="layui-form">
            <table class="layui-table" style="margin: 0">
                <thead>
                <tr>
                    <th>参数名</th>
                    <th>参数值</th>
                </tr>
                </thead>
                <tbody id="tbodyMockParams">
                <tr>
                    <!--<td>${cksDataShow}</td>-->
                    <!--<td>${cksDataHidden}</td>-->
                    <td>
                        <div class="layui-input-inline showIs">
                            <input type="hidden" class="layui-input thatHidden" lay-verify="required">
                            <input type="text" class="layui-input that" lay-verify="required">
                        </div>
                        <div class="layui-form-mid layui-word-aux showIs" style="float: none;display: inline-block;">
                            <a class="layui-btn layui-btn-sm xzPeople" >选择</a>
                        </div>
                    </td>
                    <td></td>
                </tr>
                </tbody>
            </table>
            </form>
        </div>
        <div class="layui-tab-item">
            <div id="resultView" style="border: 1px  solid silver;overflow: auto; padding: 10px;background: #fff"></div>
        </div>

    </div>
</div>
<textarea id="tbodyPreview"  style="display: none;" >
			<tr>
				<td>发起人:</td>
				<td>
					<input type="text" name="startUserId" readonly="readonly" value="" previewId=""/>
					<a class="button"><span class="chosen">选择</span></a>
				</td>
			</tr>
</textarea>

<!--<div class="layui-btn-container" style="text-align: center;position: absolute;bottom: 15px;left: 0px;right: 0px;">-->
    <!--<button class="layui-btn" lay-submit id="preview">预览</button>-->
    <!--<button class="layui-btn layui-btn-danger" id="close">关闭</button>-->
<!--</div>-->

<script>
    layui.use(['layer', 'form', 'element','setter','jquery','table'], function() {
        var layer = layui.layer
            , form = layui.form
            , $ = layui.jquery
            ,table = layui.table
            ,setter = layui.setter
            , element = layui.element;
        var modelId = "${modelId}";
        var cesStr = "${ces}";
        var dialog = frameElement.dialog;

        $(".xzPeople").click(function () {
            var userSelectorWin;
            var itemName='';
            var itemId='';
            var that = $(this).parent().prev().find(".that");
            var thatHidden = $(this).parent().prev().find(".thatHidden");
            layer.open({
                type:2
                ,title:'人员选择器'
                ,area:['980px','630px']
                ,resize:false
                ,content: serverPath.systemPath + setter.sysLinkPath+'dialog/view/singleSysUserDialog'
                ,success: function(layero, index){
                    userSelectorWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象，执行iframe页的方法：iframeWin.method();
                    //向用户选择器页面传递初始值[{name:"name1",userId:"userId1"},{name:"name2",userId:"userId2"}...]
                    userSelectorWin.parent.layui.userList = {name:"wc",userId:"ec17d71488dd43f3ac8ea1a01971d7cc"};
                }
                ,end:function(){
                    itemId = userSelectorWin.layui.selectUser.userId;
                    itemName = userSelectorWin.layui.selectUser.username;
                    that.attr("value",itemName);
                    thatHidden.attr("value",itemId);
                }
            });
        });

    })
</script>